<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<fmt:setBundle basename="ApplicationResources" />

<title><fmt:message key="title.userList" /></title>
</head>
<body>	
	<form action="${pageContext.request.contextPath}/controller/setupuser" method=post>
		<center>
			<h1><fmt:message key="label.userDetail"/></h1>
			<table cellpadding=4 cellspacing=2 border=0>				
				<tr>
					<td><fmt:message key="label.userList.id" /></td>
					<td>
					<c:if test="${param['insert']=='true'}">
						<input type="text" name="id" value="${param['id']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="true" />
					</c:if>
					<c:if test="${param['insert']=='false'}">
						<input type="text" name="id" value="${param['id']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="false" />
					</c:if>
					</td>				
				</tr>
				<tr>
					<td><fmt:message key="label.userList.name" /></td>
					<td>
					<c:if test="${param['insert']=='true'}">
						<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="true" />
					</c:if>
					<c:if test="${param['insert']=='false'}">
						<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="false" />
					</c:if>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.userList.password" /></td>
					<td>
					<c:if test="${param['insert']=='true'}">
						<input type="text" name="password" value="${param['password']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="true" />
					</c:if> 
					<c:if test="${param['insert']=='false'}">
						<input type="text" name="password" value="${param['password']}" size=15 maxlength=20>
						<input type="hidden" name="ins" value="false" />
					</c:if></td>
				</tr>
				<tr>
					<td><fmt:message key="label.userList.role" /></td>
					<td>
						<select name="roles">
							<option value="admin">admin</option>
							<option value="presenter">presenter</option>
							<option value="producer">producer</option>
							<option value="manager">manager</option>
						</select>
					</td>
				</tr>
			</table>
		</center>
		<center>
		<table>			
			<tr>
				<td>
					<input type="submit" value="Submit">
				</td>
				<td>
					<input type="reset" value="Reset">		
				</td>
			</tr>						
		</table>
		</center>
	</form>

</body>
</html>